﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MVCPets.Models.ContentModel>" %>
<%@ Import Namespace="MVCPets.Helpers" %>

<asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server">
    About Us
</asp:Content>

<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>About</h2>
    <p>
        <%= Model.ContentText %>
    </p>
    
    <% if (Request.IsAuthenticated && SessionHelper.UserRole <= RoleHelper.GetRoleValue("Contributor")) %>
    <% { %>
        <%= Html.ActionLink("[Edit]", "About", "ContentEdit") %>
    <% } %>
</asp:Content>
